package calculator;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

public class IntParserTest {

	private NumberParser parser;

	@Before
	public void setUp() throws Exception {
		parser = new IntParser();
	}

	@Test
	public void negative() {
		
		Number x = parser.parse("-43");
		assertEquals(x, -43);
	}
	
	@Test
	public void zero() {
		assertEquals(0, parser.parse("0"));
	}

}
